package com.bjsxt.back.action;

import java.util.HashMap;
import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.bjsxt.common.action.BaseAction;
import com.bjsxt.common.util.PageInfoUtil;
import com.bjsxt.system.pojo.AGrant;
import com.bjsxt.system.service.IAreaService;

@Controller("grantAction")
@RequestMapping("back")
public class GrantBackAction extends BaseAction
{	
	@Resource
	private IAreaService areaService;
	@RequestMapping("/grantList.htm")
	private String grantList(HttpServletRequest req)
	{	
		HashMap condMap = new HashMap();
		PageInfoUtil pageInfoUtil = this.getPage(req);
		/* 查出所有的数据 */
		List<AGrant> grantList = areaService.findListAGrant(pageInfoUtil, condMap);
		req.setAttribute("grantList", grantList);
		System.out.println("------------grantList------------");
		return "back/grant/grantList";
	}
}
